package com.learn.spring.ioc.way.bean;

public class BeanTest {
    private String name;
    private int count;
    private User user;

    public BeanTest(User user) {
        this.user = user;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "BeanTest{" +
                "name='" + name + '\'' +
                ", count=" + count +
                ", user=" + user +
                '}';
    }
}
